package org.cs.mgr.before.model;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "user")
public class User {
	private String id;

	private String username;

	private String openId;

	private Integer userPhoneNumber;

	private String userCity;

	private String userAddress;

	private String userMessage;

	private Boolean isVip;

	private Boolean isPicker;

	private String pickerName;

	private Boolean pickerSex;

	private String pickerJob;

	private String pickerCountry;

	private String pickerCommunity;

	private String pickerReferrer;

	private Boolean pickerIsgroupowner;

	private Boolean pickerIsexperience;

	private BigDecimal pickerEarnings;

	private BigDecimal userBalance;

	private String userAddressId;

	private String userImg;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "ID")
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "USER_NAME")
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}
		
	@Column(name = "OPEN_ID")
	public String getOpenId() {
		return openId;
	}
	public void setOpenId(String openId) {
		this.openId = openId == null ? null : openId.trim();
	}

	@Column(name = "USER_PHONE_NUMBER")
	public Integer getUserPhoneNumber() {
		return userPhoneNumber;
	}

	public void setUserPhoneNumber(Integer userPhoneNumber) {
		this.userPhoneNumber = userPhoneNumber;
	}

	@Column(name = "USER_CITY")
	public String getUserCity() {
		return userCity;
	}

	public void setUserCity(String userCity) {
		this.userCity = userCity == null ? null : userCity.trim();
	}

	@Column(name = "USER_ADDRESS")
	public String getUserAddress() {
		return userAddress;
	}

	public void setUserAddress(String userAddress) {
		this.userAddress = userAddress == null ? null : userAddress.trim();
	}

	@Column(name = "USER_MESSAGE")
	public String getUserMessage() {
		return userMessage;
	}

	public void setUserMessage(String userMessage) {
		this.userMessage = userMessage == null ? null : userMessage.trim();
	}

	@Column(name = "IS_VIP")
	public Boolean getIsVip() {
		return isVip;
	}

	public void setIsVip(Boolean isVip) {
		this.isVip = isVip;
	}

	@Column(name = "IS_PICKER")
	public Boolean getIsPicker() {
		return isPicker;
	}

	public void setIsPicker(Boolean isPicker) {
		this.isPicker = isPicker;
	}

	@Column(name = "PICKER_NAME")
	public String getPickerName() {
		return pickerName;
	}

	public void setPickerName(String pickerName) {
		this.pickerName = pickerName == null ? null : pickerName.trim();
	}

	@Column(name = "PICKER_SEX")
	public Boolean getPickerSex() {
		return pickerSex;
	}

	public void setPickerSex(Boolean pickerSex) {
		this.pickerSex = pickerSex;
	}

	@Column(name = "PICKER_JOB")
	public String getPickerJob() {
		return pickerJob;
	}

	public void setPickerJob(String pickerJob) {
		this.pickerJob = pickerJob == null ? null : pickerJob.trim();
	}

	@Column(name = "PICKER_COUNTRY")
	public String getPickerCountry() {
		return pickerCountry;
	}

	public void setPickerCountry(String pickerCountry) {
		this.pickerCountry = pickerCountry == null ? null : pickerCountry.trim();
	}

	@Column(name = "PICKER_COMMUNITY")
	public String getPickerCommunity() {
		return pickerCommunity;
	}

	public void setPickerCommunity(String pickerCommunity) {
		this.pickerCommunity = pickerCommunity == null ? null : pickerCommunity.trim();
	}

	@Column(name = "PICKER_REFERRER")
	public String getPickerReferrer() {
		return pickerReferrer;
	}

	public void setPickerReferrer(String pickerReferrer) {
		this.pickerReferrer = pickerReferrer == null ? null : pickerReferrer.trim();
	}

	@Column(name = "PICKER_ISGROUPOWNER")
	public Boolean getPickerIsgroupowner() {
		return pickerIsgroupowner;
	}

	public void setPickerIsgroupowner(Boolean pickerIsgroupowner) {
		this.pickerIsgroupowner = pickerIsgroupowner;
	}

	@Column(name = "PICKER_ISEXPERIENCE")
	public Boolean getPickerIsexperience() {
		return pickerIsexperience;
	}

	public void setPickerIsexperience(Boolean pickerIsexperience) {
		this.pickerIsexperience = pickerIsexperience;
	}

	@Column(name = "PICKER_EARNINGS")
	public BigDecimal getPickerEarnings() {
		return pickerEarnings;
	}

	public void setPickerEarnings(BigDecimal pickerEarnings) {
		this.pickerEarnings = pickerEarnings;
	}

	@Column(name = "USER_BALANCE")
	public BigDecimal getUserBalance() {
		return userBalance;
	}

	public void setUserBalance(BigDecimal userBalance) {
		this.userBalance = userBalance;
	}

	@Column(name = "USER_IMG")
	public String getUserImg() {
		return userImg;
	}

	public void setUserImg(String userImg) {
		this.userImg = userImg;
	}

	@Column(name = "USER_ADDRESS_ID")
	public String getUserAddressId() {
		return userAddressId;
	}

	public void setUserAddressId(String userAddressId) {
		this.userAddressId = userAddressId == null ? null : userAddressId.trim();
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", username=" + username + ", openId=" + openId + ", userPhoneNumber="
				+ userPhoneNumber + ", userCity=" + userCity + ", userAddress=" + userAddress + ", userMessage="
				+ userMessage + ", isVip=" + isVip + ", isPicker=" + isPicker + ", pickerName=" + pickerName
				+ ", pickerSex=" + pickerSex + ", pickerJob=" + pickerJob + ", pickerCountry=" + pickerCountry
				+ ", pickerCommunity=" + pickerCommunity + ", pickerReferrer=" + pickerReferrer
				+ ", pickerIsgroupowner=" + pickerIsgroupowner + ", pickerIsexperience=" + pickerIsexperience
				+ ", pickerEarnings=" + pickerEarnings + ", userBalance=" + userBalance + ", userAddressId="
				+ userAddressId + ", userImg=" + userImg + "]";
	}
	
}
